﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace PdxDemo.DataAnnotationsDemo
{
    public enum TEST_ENUM
    {
        [Description("First Choice")]
        First,

        [Description("Second Choice")]
        Second,

        [Description("Third Choice")]
        Third,
    }

    public class ViewModel : ViewmodelBase
    {
        [Range(5, 25)]
        [Display(Name="An Integer")]
        public int Intval { get; set; }

        [Required]
        [StringLength(12)]
        [Display(Name="A String Value")]
        public string Stringval { get; set; }

        [Display(Name="My Boolean")]
        public bool MyBoolean { get; set; }

        [Display(Name="Choose Wisely...")]
        public TEST_ENUM MyEnum { get; set; }
    }
}
